//
//  MPAppConstant.h
//  M800Project
//
//  Created by 姚宗超 on 14/11/5.
//  Copyright (c) 2014年 姚宗超. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MPAppConstant : NSObject

NSUInteger DeviceSystemMajorVersion();
//判断ios版本是否高于等于8.0
#define IOS8_OR_LATER (DeviceSystemMajorVersion() >= 8)

//判断ios版本是否高于等于7.0
#define IOS7_OR_LATER (DeviceSystemMajorVersion() >= 7)

//判断ios版本是否高于等于6.0
#define IOS6_OR_LATER (DeviceSystemMajorVersion() >= 6)

//判断ios版本低于6.0
#define IOS6_EARLIER (DeviceSystemMajorVersion() < 6)

#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]

#define TABBAR_CONTROLLER_HEIGHT        (50)
#define NAVIGATION_CONTROLLER_HEIGHT    (44 + ((IOS_VERSION >= 7.0)?20:0))
#define NAVIGATION_TITLE_HEIGHT         (44)


// API 地址（服务分配）
extern NSString* const kMPAPIURL;

// 百度云推送的 API Key
extern NSString* const kMPBaiduPushAPIKey;

// 百度云推送的 Secret Key
extern NSString* const kMPBaiduPushSecretKey;

// 百度云推送的APP ID
extern NSString* const kMPBaiduPushAppId;

// 调用第一P2P的url scheme
extern NSString* const kMPFirstP2PUrlScheme;

@end
